package org.example.demo3.demos.web.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtils extends cn.hutool.core.date.DatePattern{
    public static String formatDate(Date date, String pattern) {
        SimpleDateFormat sdf = new SimpleDateFormat(pattern);
        return sdf.format(date);
    }
}


